package com.ophiux.websocket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * @desc:
 * @author: hhl
 * @date：2023/6/20 11:34
 */
@SpringBootApplication
public class WebsocketApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(WebsocketApplication.class, args);
        Environment evn = context.getBean(Environment.class);
        System.out.println("http://127.0.0.1:"+evn.getProperty("server.port")+"/swagger-ui/index.html");
        System.out.println("websocket服务启动成功,端口：" + evn.getProperty("server.port"));
    }
}
